package com.study.mike.spring.sample.create;

import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class CreateBeanAutowiredTest {

    private ApplicationContext context;

    @Before
    public void prepare() {
//        context = new ClassPathXmlApplicationContext("com/study/mike/spring/sample/create/application.xml");
        context = new AnnotationConfigApplicationContext("com.study.mike.spring.sample.create");
    }

    @Test
    public void constructor() {
        BeanAutowiredTest beanAutowiredTest = context.getBean(BeanAutowiredTest.class);
        System.err.println(beanAutowiredTest);
    }

}
